package com.common.dto;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.validator.constraints.NotEmpty;

import com.common.dto.base.BaseDTO;


@Table(name="account_info")
public class AccountInfoDTO extends BaseDTO {
	private static final long serialVersionUID = 4901947284722186511L;

	
	/** 第三方关联字段 */
	@Column(name="person_code")
	@NotEmpty(message="缺少关键字段")
	private String personCode;
	
	/** 账号 */
	@Column(name="account_code")
	private String accountCode;
	
	/** 密码 */
	@Column(name="account_pwd")
	private String accountPwd; 
	
	/** 账号类型 1=企业,2=个人 */
	private String type; 
	
	/** 邮箱 */
	private String mail;
	
	/** 手机号 */
	@Column(name="phone_num")
	private String phoneNum;

	/**
	 * 设备来源（1：奥森；2：万物通；3：易呗；4：拍乐多）
	 * @return
	 */
	@Column(name="equipment_source")
	private String equipmentSource;

	/** 昵称 */
	@Transient
	private String nickName;
	/** 注册时间 */
	@Transient
	private String registerTime;
	/** 审核结果 */
	@Transient
	private String audit;
	
	@Transient
	private Boolean rememberMe = false;

	@Transient
	private String roleCode;
	@Transient
	private String roleName;

	@Transient
	private PrivilegeDTO menuPrivileges;
	@Transient
	private PrivilegeDTO functionPrivileges;
	@Transient
	private List<PrivilegeDTO>  listPrivilege;
    @Transient
    private String code;
    @Transient
    private String oldPwd;

    public String getOldPwd() {
        return oldPwd;
    }

    public void setOldPwd(String oldPwd) {
        this.oldPwd = oldPwd;
    }

    public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {      return code;    }

    public void setCode(String code) {        this.code = code;    }

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getPersonCode() {
		return personCode;
	}

	public void setPersonCode(String personCode) {
		this.personCode = personCode;
	}

	public String getAccountCode() {
		return accountCode;
	}

	public void setAccountCode(String accountCode) {
		this.accountCode = accountCode;
	}

	public String getAccountPwd() {
		return accountPwd;
	}

	public void setAccountPwd(String accountPwd) {
		this.accountPwd = accountPwd;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(String registerTime) {
		this.registerTime = registerTime;
	}

	public String getAudit() {
		return audit;
	}

	public void setAudit(String audit) {
		this.audit = audit;
	}

	public Boolean isRememberMe() {
		return rememberMe;
	}

	public void setRememberMe(Boolean rememberMe) {
		this.rememberMe = rememberMe;
	}

	public PrivilegeDTO getMenuPrivileges() {
		return menuPrivileges;
	}

	public void setMenuPrivileges(PrivilegeDTO menuPrivileges) {
		this.menuPrivileges = menuPrivileges;
	}

	public PrivilegeDTO getFunctionPrivileges() {
		return functionPrivileges;
	}

	public void setFunctionPrivileges(PrivilegeDTO functionPrivileges) {
		this.functionPrivileges = functionPrivileges;
	}

	public List<PrivilegeDTO> getListPrivilege() {
		return listPrivilege;
	}

	public void setListPrivilege(List<PrivilegeDTO> listPrivilege) {
		this.listPrivilege = listPrivilege;
	}

	public String getEquipmentSource() {
		return equipmentSource;
	}

	public void setEquipmentSource(String equipmentSource) {
		this.equipmentSource = equipmentSource;
	}
}
